package com.hxh.area.entity;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @author huangxunhui
 * Date: Created in 2021/5/16 13:20
 * Utils: IntelliJ IDEA
 */
@Data
@TableName("area")
public class Area {

    /**
     * 区域码
     */
    @TableId
    private Integer code;

    /**
     * 父级
     */
    private Integer parent;

    /**
     * 区域名称
     */
    private String name;

    public Area(Integer code, Integer parent, String name) {
        this.code = code;
        this.parent = parent;
        this.name = name;
    }


}
